package com.qx.dao;

import com.qx.pojo.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
@Repository
public class GeneralDao {
    public static Map<Integer, GeneralDao> Employees = null;


    public Collection<Employee> getall() {
//        System.out.println(Employees.values());
        return Employees.values();
    }

    //通过ID查询员工
    public Employee getallbyid(Integer id) {
        return Employees.get(id);
    }


}
